package archsw0904.controller.registration;

public class RegistrationBeanProxy implements archsw0904.controller.registration.RegistrationBean {
  private String _endpoint = null;
  private archsw0904.controller.registration.RegistrationBean registrationBean = null;
  
  public RegistrationBeanProxy() {
    _initRegistrationBeanProxy();
  }
  
  public RegistrationBeanProxy(String endpoint) {
    _endpoint = endpoint;
    _initRegistrationBeanProxy();
  }
  
  private void _initRegistrationBeanProxy() {
    try {
      registrationBean = (new archsw0904.controller.registration.RegistrationBeanServiceLocator()).getRegistrationBeanPort();
      if (registrationBean != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)registrationBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)registrationBean)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (registrationBean != null)
      ((javax.xml.rpc.Stub)registrationBean)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public archsw0904.controller.registration.RegistrationBean getRegistrationBean() {
    if (registrationBean == null)
      _initRegistrationBeanProxy();
    return registrationBean;
  }
  
  public void createProfileAdmin(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4) throws java.rmi.RemoteException{
    if (registrationBean == null)
      _initRegistrationBeanProxy();
    registrationBean.createProfileAdmin(arg0, arg1, arg2, arg3, arg4);
  }
  
  public void createProfile(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3, java.lang.String arg4, java.lang.String arg5, java.lang.String arg6, java.lang.String arg7, java.lang.String arg8) throws java.rmi.RemoteException, archsw0904.controller.registration.NullMandatoryFieldException{
    if (registrationBean == null)
      _initRegistrationBeanProxy();
    registrationBean.createProfile(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
  }
  
  public archsw0904.controller.registration.ProfileClient getProfileClientById(java.lang.String arg0) throws java.rmi.RemoteException{
    if (registrationBean == null)
      _initRegistrationBeanProxy();
    return registrationBean.getProfileClientById(arg0);
  }
  
  
}